class CulturalHeritage::Culture < ActiveRecord::Base
  validates :name, :presence => {:message => "El nombre es requerido"}
  validates :period, :presence => {:message => "El Periodo es requerido"}
  default_scope where("deleted = 0")
  belongs_to :obj_period, :class_name => 'CulturalHeritage::Period',  :foreign_key => 'period'
  has_many :list_point, :class_name => 'CulturalHeritage::CulturePoint',  :foreign_key => 'culture'
  has_many :list_cultural_heritages, :class_name => 'CulturalHeritage::CulturalHeritage',  :foreign_key => 'culture'
end
